import request from '@/utils/request'

// 查询企业用户列表
export function listMallCompanyUser(query) {
  return request({
    url: '/mall/mallCompanyUser/list',
    method: 'get',
    params: query
  })
}

// 查询企业用户详细
export function getMallCompanyUser(id) {
  return request({
    url: '/mall/mallCompanyUser/' + id,
    method: 'get'
  })
}

// 新增企业用户
export function addMallCompanyUser(data) {
  return request({
    url: '/mall/mallCompanyUser',
    method: 'post',
    data: data
  })
}

// 修改企业用户
export function updateMallCompanyUser(data) {
  return request({
    url: '/mall/mallCompanyUser',
    method: 'put',
    data: data
  })
}

// 删除企业用户
export function delMallCompanyUser(id) {
  return request({
    url: '/mall/mallCompanyUser/' + id,
    method: 'delete'
  })
}

// 导出企业用户
export function exportMallCompanyUser(query) {
  return request({
    url: '/mall/mallCompanyUser/export',
    method: 'get',
    params: query
  })
}